# -*- coding: utf-8 -*-

'''
Created on 17.07.2011

@author: Vlasov A. I. <root@proscript.ru>
'''

from django.shortcuts import render_to_response
from django.template import RequestContext

from django.db import connection

def render_by_request_context(request, template, kwargs=None):
    return render_to_response(template, kwargs, context_instance=RequestContext(request, { '_q': connection.queries }))